// Package article
// Created by GoLand
// @User: lenora
// @Date: 2024/1/27
// @Time: 17:25

package article

import (
	"context"
	"gorm.io/gorm"
)

type AuthorDao interface {
	Create(ctx context.Context, art Articles) (uint64, error)
	Update(ctx context.Context, art Articles) error
}

func NewGormAuthorDao(db *gorm.DB) AuthorDao {
	return &GormAuthorDao{db: db}
}

type GormAuthorDao struct {
	db *gorm.DB
}

func (dao *GormAuthorDao) Create(ctx context.Context, art Articles) (uint64, error) {
	//TODO implement me
	panic("implement me")
}

func (dao *GormAuthorDao) Update(ctx context.Context, art Articles) error {
	//TODO implement me
	panic("implement me")
}
